<?php
class MembersFForm extends BaseFormAdmin{
	public function configure(){
		
		$this->setWidget('email', new sfWidgetFormInputText(array(), array('class' => 'required hz-required hz-email')));
		$this->setValidator('email', new sfValidatorAnd(array(new sfValidatorString(array('max_length'=> 255)),
				new sfValidatorEmail(array(), array('invalid' => __('error-email-invalid')))
		)));
		
		$this->setWidget('phone_number', new sfWidgetFormInputText(array(), array('class' => 'required hz-required number')));
		$this->setValidator('phone_number', new sfValidatorString(array('max_length' => 255, 'required' => false)));
		
		$this->setWidget('epoint', new sfWidgetFormInputText(array(), array('class' => 'number')));
		$this->setValidator('epoint', new sfValidatorString(array('max_length'=> 255, 'required' => false)));
		
		$this->setWidget('fullname', new sfWidgetFormInputText(array(), array('class' => 'required hz-required')));
		$this->setValidator('fullname', new sfValidatorString(array('max_length' => 255, 'required' => false)));
		
		$this->setWidget('address', new sfWidgetFormInputText(array(), array('class' => 'required hz-required')));
		$this->setValidator('address', new sfValidatorString(array('max_length' => 255, 'required' => false)));
		
		$this->setWidget('password', new sfWidgetFormInputPassword(array(), array('class' => 'required hz-required password hz-confirm-required', 'data-id-confirm' => 'AdminFForm_password_confirm')));
		$this->setValidator('password', new sfValidatorString(array('max_length' => 255, 'required' => false)));
		
		$this->setWidget('password_confirm', new sfWidgetFormInputPassword(array(), array('class' => 'required password')));
		$this->setValidator('password_confirm', new sfValidatorString(array('max_length'=> 255, 'required' => false)));
		
		parent::configure();
	}
}
